from models.models import Role
from service.BaseService import BaseService
from config import settings
from sqlmodel import Session, select
from typing import Optional

class RoleService(BaseService[Role]):
    def __init__(self):
        super().__init__(Role)

    def get_role_by_role_id(self, role_id: int):
        statement = select(Role).where(Role.role_id == role_id)
        return self.session.exec(statement).first()




